package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.SchemaCharacterSetOrPath;
import com.yanmaohu.yulia.bean.SchemaElementList;
import com.yanmaohu.yulia.bean.SchemaNameClause;

/**
 * @author Bright Lee
 */
public final class SchemaDefinition implements SqlSchemaDefinitionStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private SchemaNameClause schemaNameClause;
    private SchemaCharacterSetOrPath schemaCharacterSetOrPath;
    private SchemaElementList schemaElementList;

    public SchemaDefinition(int beginIndex,
                            int endIndex,
                            SchemaNameClause schemaNameClause,
                            SchemaCharacterSetOrPath schemaCharacterSetOrPath,
                            SchemaElementList schemaElementList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.schemaNameClause = schemaNameClause;
        this.schemaCharacterSetOrPath = schemaCharacterSetOrPath;
        this.schemaElementList = schemaElementList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SchemaNameClause getSchemaNameClause() {
        return schemaNameClause;
    }

    public SchemaCharacterSetOrPath getSchemaCharacterSetOrPath() {
        return schemaCharacterSetOrPath;
    }

    public SchemaElementList getSchemaElementList() {
        return schemaElementList;
    }

}
